import os
import logging

# 项目根目录
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# WebDriver路径
EDGE_DRIVER_PATH = os.path.join(BASE_DIR, 'msedgedriver.exe')

# 字体文件路径
FONTS_DIR = os.path.join(BASE_DIR, 'fonts')
SIMHEI_FONT_PATH = os.path.join(FONTS_DIR, 'simhei.ttf')
SIMFANG_FONT_PATH = os.path.join(FONTS_DIR, 'simfang.ttf')

# 请求头
HEADERS = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
                  "(KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0"
}

# 日志配置
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)

# AI API配置
KIMI_YC = "sk-SzytvBrxyPfHOFZ1qXxWGahZceRFoyeoVas6IOk341lDLcuz"
MODEL_YC = "kimi-latest"

KIMI_BT = "sk-SzytvBrxyPfHOFZ1qXxWGahZceRFoyeoVas6IOk341lDLcuz"
KIMI_MODEL_BT = "moonshot-v1-8k"

KIMI_ME = "sk-SzytvBrxyPfHOFZ1qXxWGahZceRFoyeoVas6IOk341lDLcuz"
KIMI_MODEL_ME = "moonshot-v1-8k"